
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>2.2020-01-16-nginx参数详细说明 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="Nginx配置参数中文说明">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="2019-12-29-Nginx-Keepalived高可用集群.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    [bigdata]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../bigdata/2019-12-30-spark-in-docker.html">
            
                <a href="../bigdata/2019-12-30-spark-in-docker.html">
            
                    
                    1.2019-12-30-spark-in-docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../bigdata/2019-12-30-spark-RDD.html">
            
                <a href="../bigdata/2019-12-30-spark-RDD.html">
            
                    
                    2.2019-12-30-spark-RDD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../bigdata/2019-12-31-hadoop-hdfs命令别名.html">
            
                <a href="../bigdata/2019-12-31-hadoop-hdfs命令别名.html">
            
                    
                    3.2019-12-31-hadoop-hdfs命令别名
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    [c]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../c/2020-01-07-c语言.html">
            
                <a href="../c/2020-01-07-c语言.html">
            
                    
                    1.2020-01-07-c语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../c/2020-01-07-C语言基础教程.html">
            
                <a href="../c/2020-01-07-C语言基础教程.html">
            
                    
                    2.2020-01-07-C语言基础教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../c/2020-01-09-c语言语法基础.html">
            
                <a href="../c/2020-01-09-c语言语法基础.html">
            
                    
                    3.2020-01-09-c语言语法基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    [DataStructureandAlgorithms]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../DataStructureandAlgorithms/2019-12-28-数据结构和算法的关系.html">
            
                <a href="../DataStructureandAlgorithms/2019-12-28-数据结构和算法的关系.html">
            
                    
                    1.2019-12-28-数据结构和算法的关系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../DataStructureandAlgorithms/2019-12-28-稀疏数组.html">
            
                <a href="../DataStructureandAlgorithms/2019-12-28-稀疏数组.html">
            
                    
                    2.2019-12-28-稀疏数组
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    [git]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../git/2019-12-28-git-alias.html">
            
                <a href="../git/2019-12-28-git-alias.html">
            
                    
                    1.2019-12-28-git-alias
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../git/2019-12-29-git常用命令.html">
            
                <a href="../git/2019-12-29-git常用命令.html">
            
                    
                    2.2019-12-29-git常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../git/2019-12-31-git教程.html">
            
                <a href="../git/2019-12-31-git教程.html">
            
                    
                    3.2019-12-31-git教程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    [go]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../go/2019-12-30-beego基本使用.html">
            
                <a href="../go/2019-12-30-beego基本使用.html">
            
                    
                    1.2019-12-30-beego基本使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    [java]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../java/2019-12-30-环境变量和系统属性.html">
            
                <a href="../java/2019-12-30-环境变量和系统属性.html">
            
                    
                    1.2019-12-30-环境变量和系统属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../java/2019-12-31-cloud-native-云原生.html">
            
                <a href="../java/2019-12-31-cloud-native-云原生.html">
            
                    
                    2.2019-12-31-cloud-native-云原生
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../java/2019-12-31-java语法难点.html">
            
                <a href="../java/2019-12-31-java语法难点.html">
            
                    
                    3.2019-12-31-java语法难点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../java/2019-12-31-设计模式.html">
            
                <a href="../java/2019-12-31-设计模式.html">
            
                    
                    4.2019-12-31-设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../java/2020-01-12-Ajax跨域问题解决方案.html">
            
                <a href="../java/2020-01-12-Ajax跨域问题解决方案.html">
            
                    
                    5.2020-01-12-Ajax跨域问题解决方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="../java/2020-01-12-freemarker应用场景介绍.html">
            
                <a href="../java/2020-01-12-freemarker应用场景介绍.html">
            
                    
                    6.2020-01-12-freemarker应用场景介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="../java/2020-01-12-jsp运行原理和运行过程.html">
            
                <a href="../java/2020-01-12-jsp运行原理和运行过程.html">
            
                    
                    7.2020-01-12-jsp运行原理和运行过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.8" data-path="../java/2020-01-12-深入理解Maven中的Profile.html">
            
                <a href="../java/2020-01-12-深入理解Maven中的Profile.html">
            
                    
                    8.2020-01-12-深入理解Maven中的Profile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.9" data-path="../java/2020-01-12-缓存穿透-缓存击穿-缓存雪崩概念及解决方案.html">
            
                <a href="../java/2020-01-12-缓存穿透-缓存击穿-缓存雪崩概念及解决方案.html">
            
                    
                    9.2020-01-12-缓存穿透-缓存击穿-缓存雪崩概念及解决方案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.10" data-path="../java/2020-01-13-事务笔记.html">
            
                <a href="../java/2020-01-13-事务笔记.html">
            
                    
                    10.2020-01-13-事务笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.11" data-path="../java/2020-01-13-幂等性.html">
            
                <a href="../java/2020-01-13-幂等性.html">
            
                    
                    11.2020-01-13-幂等性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.12" data-path="../java/2020-01-16-java基本语法.html">
            
                <a href="../java/2020-01-16-java基本语法.html">
            
                    
                    12.2020-01-16-java基本语法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    [arthas]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../java/arthas/2019-12-28-arthas-example.html">
            
                <a href="../java/arthas/2019-12-28-arthas-example.html">
            
                    
                    1.2019-12-28-arthas-example
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.2" data-path="../java/arthas/2019-12-28-arthas添加支持执行历史命令的shell功能.html">
            
                <a href="../java/arthas/2019-12-28-arthas添加支持执行历史命令的shell功能.html">
            
                    
                    2.2019-12-28-arthas添加支持执行历史命令的shell功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.3" data-path="../java/arthas/2020-01-10-思考性能调优.html">
            
                <a href="../java/arthas/2020-01-10-思考性能调优.html">
            
                    
                    3.2020-01-10-思考性能调优
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.4" data-path="../java/arthas/2020-01-10-性能调优举例-最佳实践.html">
            
                <a href="../java/arthas/2020-01-10-性能调优举例-最佳实践.html">
            
                    
                    4.2020-01-10-性能调优举例-最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.5" data-path="../java/arthas/2020-01-10-性能调优举例一.html">
            
                <a href="../java/arthas/2020-01-10-性能调优举例一.html">
            
                    
                    5.2020-01-10-性能调优举例一
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.6" data-path="../java/arthas/2020-01-10-性能调优举例三.html">
            
                <a href="../java/arthas/2020-01-10-性能调优举例三.html">
            
                    
                    6.2020-01-10-性能调优举例三
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.7" data-path="../java/arthas/2020-01-10-性能调优举例二.html">
            
                <a href="../java/arthas/2020-01-10-性能调优举例二.html">
            
                    
                    7.2020-01-10-性能调优举例二
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.8" data-path="../java/arthas/2020-01-10-性能调优举例四.html">
            
                <a href="../java/arthas/2020-01-10-性能调优举例四.html">
            
                    
                    8.2020-01-10-性能调优举例四
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.9" data-path="../java/arthas/2020-01-15-性能调优举例五.html">
            
                <a href="../java/arthas/2020-01-15-性能调优举例五.html">
            
                    
                    9.2020-01-15-性能调优举例五
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.10" data-path="../java/arthas/2020-05-12-性能调优举例六.html">
            
                <a href="../java/arthas/2020-05-12-性能调优举例六.html">
            
                    
                    10.2020-05-12-性能调优举例六
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7.11" data-path="../java/arthas/arthas-mind-map.html">
            
                <a href="../java/arthas/arthas-mind-map.html">
            
                    
                    11.arthas-mind-map
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" >
            
                <span>
            
                    
                    [dubbo]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.8.1" data-path="../java/dubbo/2019-12-28-dubbo涉及的技术.html">
            
                <a href="../java/dubbo/2019-12-28-dubbo涉及的技术.html">
            
                    
                    1.2019-12-28-dubbo涉及的技术
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8.2" data-path="../java/dubbo/2019-12-30-dubbo消费者访问流程.html">
            
                <a href="../java/dubbo/2019-12-30-dubbo消费者访问流程.html">
            
                    
                    2.2019-12-30-dubbo消费者访问流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8.3" data-path="../java/dubbo/2019-12-30-dubbo面试.html">
            
                <a href="../java/dubbo/2019-12-30-dubbo面试.html">
            
                    
                    3.2019-12-30-dubbo面试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.9" >
            
                <span>
            
                    
                    [jdk]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.9.1" data-path="../java/jdk/2020-01-12-实例介绍 JAVA 泛型基础.html">
            
                <a href="../java/jdk/2020-01-12-实例介绍 JAVA 泛型基础.html">
            
                    
                    1.2020-01-12-实例介绍 JAVA 泛型基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9.2" data-path="../java/jdk/2020-01-13-ThreadLocal六连问.html">
            
                <a href="../java/jdk/2020-01-13-ThreadLocal六连问.html">
            
                    
                    2.2020-01-13-ThreadLocal六连问
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.10" >
            
                <span>
            
                    
                    [jvm]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="../java/jvm/2019-12-30-性能调优.html">
            
                <a href="../java/jvm/2019-12-30-性能调优.html">
            
                    
                    1.2019-12-30-性能调优
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" >
            
                <span>
            
                    
                    [netty]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.11.1" data-path="../java/netty/2020-01-16-netty入门.html">
            
                <a href="../java/netty/2020-01-16-netty入门.html">
            
                    
                    1.2020-01-16-netty入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11.2" data-path="../java/netty/2020-01-16-netty核心概念.html">
            
                <a href="../java/netty/2020-01-16-netty核心概念.html">
            
                    
                    2.2020-01-16-netty核心概念
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.12" >
            
                <span>
            
                    
                    [solr]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.12.1" data-path="../java/solr/2019-12-28-solr-7.6.0.tgz安装.html">
            
                <a href="../java/solr/2019-12-28-solr-7.6.0.tgz安装.html">
            
                    
                    1.2019-12-28-solr-7.6.0.tgz安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.13" >
            
                <span>
            
                    
                    [spring]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.13.1" data-path="../java/spring/2020-01-12-SpringBoot属性读取方式介绍.html">
            
                <a href="../java/spring/2020-01-12-SpringBoot属性读取方式介绍.html">
            
                    
                    1.2020-01-12-SpringBoot属性读取方式介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.2" data-path="../java/spring/2020-01-12-使用spring boot+mybatis plus快速入门.html">
            
                <a href="../java/spring/2020-01-12-使用spring boot+mybatis plus快速入门.html">
            
                    
                    2.2020-01-12-使用spring boot+mybatis plus快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.3" data-path="../java/spring/2020-01-13-spring-initMethod-destoryMethod.html">
            
                <a href="../java/spring/2020-01-13-spring-initMethod-destoryMethod.html">
            
                    
                    3.2020-01-13-spring-initMethod-destoryMethod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.4" data-path="../java/spring/2020-01-13-spring循环依赖.html">
            
                <a href="../java/spring/2020-01-13-spring循环依赖.html">
            
                    
                    4.2020-01-13-spring循环依赖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.5" data-path="../java/spring/2020-01-13-spring源码随记.html">
            
                <a href="../java/spring/2020-01-13-spring源码随记.html">
            
                    
                    5.2020-01-13-spring源码随记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13.6" data-path="../java/spring/2020-01-13-自定义mini-spring.html">
            
                <a href="../java/spring/2020-01-13-自定义mini-spring.html">
            
                    
                    6.2020-01-13-自定义mini-spring
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.14" >
            
                <span>
            
                    
                    [websocket]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.14.1" data-path="../java/websocket/2019-12-30-webscoket-springboot通信.html">
            
                <a href="../java/websocket/2019-12-30-webscoket-springboot通信.html">
            
                    
                    1.2019-12-30-webscoket-springboot通信
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.15" >
            
                <span>
            
                    
                    [linux]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.15.1" data-path="../linux/2019-12-28-Linux常用命令和快捷键.html">
            
                <a href="../linux/2019-12-28-Linux常用命令和快捷键.html">
            
                    
                    1.2019-12-28-Linux常用命令和快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.2" data-path="../linux/2019-12-28-从零到一环境安装.html">
            
                <a href="../linux/2019-12-28-从零到一环境安装.html">
            
                    
                    2.2019-12-28-从零到一环境安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.3" data-path="../linux/2019-12-30-vi-常用命令.html">
            
                <a href="../linux/2019-12-30-vi-常用命令.html">
            
                    
                    3.2019-12-30-vi-常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.4" data-path="../linux/2019-12-31-awk命令.html">
            
                <a href="../linux/2019-12-31-awk命令.html">
            
                    
                    4.2019-12-31-awk命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.5" data-path="../linux/2019-12-31-cup信息分析.html">
            
                <a href="../linux/2019-12-31-cup信息分析.html">
            
                    
                    5.2019-12-31-cup信息分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.6" data-path="../linux/2019-12-31-shell编程.html">
            
                <a href="../linux/2019-12-31-shell编程.html">
            
                    
                    6.2019-12-31-shell编程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.7" data-path="../linux/2019-12-31-top命令.html">
            
                <a href="../linux/2019-12-31-top命令.html">
            
                    
                    7.2019-12-31-top命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.8" data-path="../linux/2019-12-31-普通用户docker的问题.html">
            
                <a href="../linux/2019-12-31-普通用户docker的问题.html">
            
                    
                    8.2019-12-31-普通用户docker的问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.9" data-path="../linux/2020-01-01-centos7 安装kubernetes.html">
            
                <a href="../linux/2020-01-01-centos7 安装kubernetes.html">
            
                    
                    9.2020-01-01-centos7 安装kubernetes
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.10" data-path="../linux/2020-01-01-centos安装常用配置.html">
            
                <a href="../linux/2020-01-01-centos安装常用配置.html">
            
                    
                    10.2020-01-01-centos安装常用配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.11" data-path="../linux/2020-01-01-docker使用.html">
            
                <a href="../linux/2020-01-01-docker使用.html">
            
                    
                    11.2020-01-01-docker使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.12" data-path="../linux/2020-01-01-kubernetes使用.html">
            
                <a href="../linux/2020-01-01-kubernetes使用.html">
            
                    
                    12.2020-01-01-kubernetes使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.13" data-path="../linux/2020-05-12-PG有用的SQL.html">
            
                <a href="../linux/2020-05-12-PG有用的SQL.html">
            
                    
                    13.2020-05-12-PG有用的SQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15.14" data-path="../linux/2020-05-12-vim命令.html">
            
                <a href="../linux/2020-05-12-vim命令.html">
            
                    
                    14.2020-05-12-vim命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.16" >
            
                <span>
            
                    
                    [automate]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.16.1" data-path="../linux/automate/2020-01-12-redis伪集群创建脚本.html">
            
                <a href="../linux/automate/2020-01-12-redis伪集群创建脚本.html">
            
                    
                    1.2020-01-12-redis伪集群创建脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.16.2" data-path="../linux/automate/2020-01-12-tomcat集群创建脚本.html">
            
                <a href="../linux/automate/2020-01-12-tomcat集群创建脚本.html">
            
                    
                    2.2020-01-12-tomcat集群创建脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.16.3" data-path="../linux/automate/2020-01-12-zookeeper自动化脚本.html">
            
                <a href="../linux/automate/2020-01-12-zookeeper自动化脚本.html">
            
                    
                    3.2020-01-12-zookeeper自动化脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.16.4" data-path="../linux/automate/2020-01-12-其他自动化脚本.html">
            
                <a href="../linux/automate/2020-01-12-其他自动化脚本.html">
            
                    
                    4.2020-01-12-其他自动化脚本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.17" >
            
                <span>
            
                    
                    [MySQL]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.17.1" data-path="../MySQL/2019-12-31-mysql常用命令.html">
            
                <a href="../MySQL/2019-12-31-mysql常用命令.html">
            
                    
                    1.2019-12-31-mysql常用命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.18" >
            
                <span>
            
                    
                    [nginx]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.18.1" data-path="2019-12-29-Nginx-Keepalived高可用集群.html">
            
                <a href="2019-12-29-Nginx-Keepalived高可用集群.html">
            
                    
                    1.2019-12-29-Nginx-Keepalived高可用集群
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.18.2" data-path="2020-01-16-nginx参数详细说明.html">
            
                <a href="2020-01-16-nginx参数详细说明.html">
            
                    
                    2.2020-01-16-nginx参数详细说明
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.19" >
            
                <span>
            
                    
                    [other]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.19.1" data-path="../other/2019-12-28-知识小计.html">
            
                <a href="../other/2019-12-28-知识小计.html">
            
                    
                    1.2019-12-28-知识小计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.19.2" data-path="../other/2020-01-04-科学上网.html">
            
                <a href="../other/2020-01-04-科学上网.html">
            
                    
                    2.2020-01-04-科学上网
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.19.3" data-path="../other/2020-05-13-正则表达式.html">
            
                <a href="../other/2020-05-13-正则表达式.html">
            
                    
                    3.2020-05-13-正则表达式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.19.4" data-path="../other/template.html">
            
                <a href="../other/template.html">
            
                    
                    4.template
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.20" >
            
                <span>
            
                    
                    [PostgreSQL]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.20.1" data-path="../PostgreSQL/2019-12-28-PostgreSQL安装文档.html">
            
                <a href="../PostgreSQL/2019-12-28-PostgreSQL安装文档.html">
            
                    
                    1.2019-12-28-PostgreSQL安装文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.20.2" data-path="../PostgreSQL/2019-12-28-Postgres学习笔记.html">
            
                <a href="../PostgreSQL/2019-12-28-Postgres学习笔记.html">
            
                    
                    2.2019-12-28-Postgres学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.20.3" data-path="../PostgreSQL/2019-12-28-脚本MYSQL导出数据到PG.html">
            
                <a href="../PostgreSQL/2019-12-28-脚本MYSQL导出数据到PG.html">
            
                    
                    3.2019-12-28-脚本MYSQL导出数据到PG
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.20.4" data-path="../PostgreSQL/2020-01-04-docker-PostgreSQL安装文档.html">
            
                <a href="../PostgreSQL/2020-01-04-docker-PostgreSQL安装文档.html">
            
                    
                    4.2020-01-04-docker-PostgreSQL安装文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.20.5" data-path="../PostgreSQL/2020-01-17-阿里云PG主从切换问题.html">
            
                <a href="../PostgreSQL/2020-01-17-阿里云PG主从切换问题.html">
            
                    
                    5.2020-01-17-阿里云PG主从切换问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.21" >
            
                <span>
            
                    
                    [python]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.21.1" data-path="../python/2019-12-28-pip-install指定国内源镜像.html">
            
                <a href="../python/2019-12-28-pip-install指定国内源镜像.html">
            
                    
                    1.2019-12-28-pip-install指定国内源镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.21.2" data-path="../python/2019-12-30-python内置函数.html">
            
                <a href="../python/2019-12-30-python内置函数.html">
            
                    
                    2.2019-12-30-python内置函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.21.3" data-path="../python/2019-12-30-一图搞懂基本python语法 .html">
            
                <a href="../python/2019-12-30-一图搞懂基本python语法 .html">
            
                    
                    3.2019-12-30-一图搞懂基本python语法 
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.22" >
            
                <span>
            
                    
                    [redis]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.22.1" data-path="../redis/2019-12-28-redis5.0.3安装.html">
            
                <a href="../redis/2019-12-28-redis5.0.3安装.html">
            
                    
                    1.2019-12-28-redis5.0.3安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.22.2" data-path="../redis/2019-12-28-redis5.0.3集群搭建.html">
            
                <a href="../redis/2019-12-28-redis5.0.3集群搭建.html">
            
                    
                    2.2019-12-28-redis5.0.3集群搭建
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.23" >
            
                <span>
            
                    
                    [tool]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.23.1" data-path="../tool/2019-12-28-idea高效使用技巧和快捷键.html">
            
                <a href="../tool/2019-12-28-idea高效使用技巧和快捷键.html">
            
                    
                    1.2019-12-28-idea高效使用技巧和快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.23.2" data-path="../tool/2019-12-28-PlantUML画图脚本.html">
            
                <a href="../tool/2019-12-28-PlantUML画图脚本.html">
            
                    
                    2.2019-12-28-PlantUML画图脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.23.3" data-path="../tool/2019-12-30-vscode高效使用.html">
            
                <a href="../tool/2019-12-30-vscode高效使用.html">
            
                    
                    3.2019-12-30-vscode高效使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.24" >
            
                <span>
            
                    
                    [windows]
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.24.1" data-path="../windows/2020-01-12-本地服务成为互联网服务.html">
            
                <a href="../windows/2020-01-12-本地服务成为互联网服务.html">
            
                    
                    1.2020-01-12-本地服务成为互联网服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.24.2" data-path="../windows/2020-01-12-注册bat为windows服务.html">
            
                <a href="../windows/2020-01-12-注册bat为windows服务.html">
            
                    
                    2.2020-01-12-注册bat为windows服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >2.2020-01-16-nginx参数详细说明</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <p>&#x53F2;&#x4E0A;&#x6700;&#x5168;&#x7684;Nginx&#x914D;&#x7F6E;&#x53C2;&#x6570;&#x4E2D;&#x6587;&#x8BF4;&#x660E;</p>
<h2 id="nginxconf">nginx.conf</h2>
<pre><code class="lang-conf">#&#x5B9A;&#x4E49;Nginx&#x8FD0;&#x884C;&#x7684;&#x7528;&#x6237;&#x548C;&#x7528;&#x6237;&#x7EC4;
user www www;
#
#nginx&#x8FDB;&#x7A0B;&#x6570;,&#x5EFA;&#x8BAE;&#x8BBE;&#x7F6E;&#x4E3A;&#x7B49;&#x4E8E;CPU&#x603B;&#x6838;&#x5FC3;&#x6570;.
worker_processes 8;
#
#&#x5168;&#x5C40;&#x9519;&#x8BEF;&#x65E5;&#x5FD7;&#x5B9A;&#x4E49;&#x7C7B;&#x578B;,[ debug | info | notice | warn | error | crit ]
error_log /var/log/nginx/error.log info;
#
#&#x8FDB;&#x7A0B;&#x6587;&#x4EF6;
pid /var/run/nginx.pid;
#
#&#x4E00;&#x4E2A;nginx&#x8FDB;&#x7A0B;&#x6253;&#x5F00;&#x7684;&#x6700;&#x591A;&#x6587;&#x4EF6;&#x63CF;&#x8FF0;&#x7B26;&#x6570;&#x76EE;,&#x7406;&#x8BBA;&#x503C;&#x5E94;&#x8BE5;&#x662F;&#x6700;&#x591A;&#x6253;&#x5F00;&#x6587;&#x4EF6;&#x6570;&#xFF08;&#x7CFB;&#x7EDF;&#x7684;&#x503C;ulimit -n&#xFF09;&#x4E0E;nginx&#x8FDB;&#x7A0B;&#x6570;&#x76F8;&#x9664;,&#x4F46;&#x662F;nginx&#x5206;&#x914D;&#x8BF7;&#x6C42;&#x5E76;&#x4E0D;&#x5747;&#x5300;,&#x6240;&#x4EE5;&#x5EFA;&#x8BAE;&#x4E0E;ulimit -n&#x7684;&#x503C;&#x4FDD;&#x6301;&#x4E00;&#x81F4;.
worker_rlimit_nofile 65535;
#
#&#x5DE5;&#x4F5C;&#x6A21;&#x5F0F;&#x4E0E;&#x8FDE;&#x63A5;&#x6570;&#x4E0A;&#x9650;
events
{
    #&#x53C2;&#x8003;&#x4E8B;&#x4EF6;&#x6A21;&#x578B;,use [ kqueue | rtsig | epoll | /dev/poll | select | poll ]; epoll&#x6A21;&#x578B;&#x662F;Linux 2.6&#x4EE5;&#x4E0A;&#x7248;&#x672C;&#x5185;&#x6838;&#x4E2D;&#x7684;&#x9AD8;&#x6027;&#x80FD;&#x7F51;&#x7EDC;I/O&#x6A21;&#x578B;,&#x5982;&#x679C;&#x8DD1;&#x5728;FreeBSD&#x4E0A;&#x9762;,&#x5C31;&#x7528;kqueue&#x6A21;&#x578B;.
    use epoll;
    #&#x5355;&#x4E2A;&#x8FDB;&#x7A0B;&#x6700;&#x5927;&#x8FDE;&#x63A5;&#x6570;&#xFF08;&#x6700;&#x5927;&#x8FDE;&#x63A5;&#x6570;=&#x8FDE;&#x63A5;&#x6570;*&#x8FDB;&#x7A0B;&#x6570;&#xFF09;
    worker_connections 65535;
}
#
#&#x8BBE;&#x5B9A;http&#x670D;&#x52A1;&#x5668;
http
{
    include mime.types; #&#x6587;&#x4EF6;&#x6269;&#x5C55;&#x540D;&#x4E0E;&#x6587;&#x4EF6;&#x7C7B;&#x578B;&#x6620;&#x5C04;&#x8868;
    default_type application/octet-stream; #&#x9ED8;&#x8BA4;&#x6587;&#x4EF6;&#x7C7B;&#x578B;
    #charset utf-8; #&#x9ED8;&#x8BA4;&#x7F16;&#x7801;
    server_names_hash_bucket_size 128; #&#x670D;&#x52A1;&#x5668;&#x540D;&#x5B57;&#x7684;hash&#x8868;&#x5927;&#x5C0F;
    client_header_buffer_size 32k; #&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x9650;&#x5236;
    large_client_header_buffers 4 64k; #&#x8BBE;&#x5B9A;&#x8BF7;&#x6C42;&#x7F13;
    client_max_body_size 8m; #&#x8BBE;&#x5B9A;&#x8BF7;&#x6C42;&#x7F13;

    # &#x5F00;&#x542F;&#x76EE;&#x5F55;&#x5217;&#x8868;&#x8BBF;&#x95EE;,&#x5408;&#x9002;&#x4E0B;&#x8F7D;&#x670D;&#x52A1;&#x5668;,&#x9ED8;&#x8BA4;&#x5173;&#x95ED;.
    autoindex on; # &#x663E;&#x793A;&#x76EE;&#x5F55;
    autoindex_exact_size on; # &#x663E;&#x793A;&#x6587;&#x4EF6;&#x5927;&#x5C0F; &#x9ED8;&#x8BA4;&#x4E3A;on,&#x663E;&#x793A;&#x51FA;&#x6587;&#x4EF6;&#x7684;&#x786E;&#x5207;&#x5927;&#x5C0F;,&#x5355;&#x4F4D;&#x662F;bytes &#x6539;&#x4E3A;off&#x540E;,&#x663E;&#x793A;&#x51FA;&#x6587;&#x4EF6;&#x7684;&#x5927;&#x6982;&#x5927;&#x5C0F;,&#x5355;&#x4F4D;&#x662F;kB&#x6216;&#x8005;MB&#x6216;&#x8005;GB
    autoindex_localtime on; # &#x663E;&#x793A;&#x6587;&#x4EF6;&#x65F6;&#x95F4; &#x9ED8;&#x8BA4;&#x4E3A;off,&#x663E;&#x793A;&#x7684;&#x6587;&#x4EF6;&#x65F6;&#x95F4;&#x4E3A;GMT&#x65F6;&#x95F4; &#x6539;&#x4E3A;on&#x540E;,&#x663E;&#x793A;&#x7684;&#x6587;&#x4EF6;&#x65F6;&#x95F4;&#x4E3A;&#x6587;&#x4EF6;&#x7684;&#x670D;&#x52A1;&#x5668;&#x65F6;&#x95F4;

    sendfile on; # &#x5F00;&#x542F;&#x9AD8;&#x6548;&#x6587;&#x4EF6;&#x4F20;&#x8F93;&#x6A21;&#x5F0F;,sendfile&#x6307;&#x4EE4;&#x6307;&#x5B9A;nginx&#x662F;&#x5426;&#x8C03;&#x7528;sendfile&#x51FD;&#x6570;&#x6765;&#x8F93;&#x51FA;&#x6587;&#x4EF6;,&#x5BF9;&#x4E8E;&#x666E;&#x901A;&#x5E94;&#x7528;&#x8BBE;&#x4E3A; on,&#x5982;&#x679C;&#x7528;&#x6765;&#x8FDB;&#x884C;&#x4E0B;&#x8F7D;&#x7B49;&#x5E94;&#x7528;&#x78C1;&#x76D8;IO&#x91CD;&#x8D1F;&#x8F7D;&#x5E94;&#x7528;,&#x53EF;&#x8BBE;&#x7F6E;&#x4E3A;off,&#x4EE5;&#x5E73;&#x8861;&#x78C1;&#x76D8;&#x4E0E;&#x7F51;&#x7EDC;I/O&#x5904;&#x7406;&#x901F;&#x5EA6;,&#x964D;&#x4F4E;&#x7CFB;&#x7EDF;&#x7684;&#x8D1F;&#x8F7D;.&#x6CE8;&#x610F;&#xFF1A;&#x5982;&#x679C;&#x56FE;&#x7247;&#x663E;&#x793A;&#x4E0D;&#x6B63;&#x5E38;&#x628A;&#x8FD9;&#x4E2A;&#x6539;&#x6210;off.
    tcp_nopush on; # &#x9632;&#x6B62;&#x7F51;&#x7EDC;&#x963B;&#x585E;
    tcp_nodelay on; # &#x9632;&#x6B62;&#x7F51;&#x7EDC;&#x963B;&#x585E;

    keepalive_timeout 120; # (&#x5355;&#x4F4D;s)&#x8BBE;&#x7F6E;&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;&#x4FDD;&#x6301;&#x6D3B;&#x52A8;&#x7684;&#x8D85;&#x65F6;&#x65F6;&#x95F4;,&#x5728;&#x8D85;&#x8FC7;&#x8FD9;&#x4E2A;&#x65F6;&#x95F4;&#x540E;&#x670D;&#x52A1;&#x5668;&#x4F1A;&#x5173;&#x95ED;&#x8BE5;&#x94FE;&#x63A5;

    # FastCGI&#x76F8;&#x5173;&#x53C2;&#x6570;&#x662F;&#x4E3A;&#x4E86;&#x6539;&#x5584;&#x7F51;&#x7AD9;&#x7684;&#x6027;&#x80FD;&#xFF1A;&#x51CF;&#x5C11;&#x8D44;&#x6E90;&#x5360;&#x7528;,&#x63D0;&#x9AD8;&#x8BBF;&#x95EE;&#x901F;&#x5EA6;.&#x4E0B;&#x9762;&#x53C2;&#x6570;&#x770B;&#x5B57;&#x9762;&#x610F;&#x601D;&#x90FD;&#x80FD;&#x7406;&#x89E3;.
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 64k;
    fastcgi_buffers 4 64k;
    fastcgi_busy_buffers_size 128k;
    fastcgi_temp_file_write_size 128k;

    # gzip&#x6A21;&#x5757;&#x8BBE;&#x7F6E;
    gzip on; #&#x5F00;&#x542F;gzip&#x538B;&#x7F29;&#x8F93;&#x51FA;
    gzip_min_length 1k; #&#x5141;&#x8BB8;&#x538B;&#x7F29;&#x7684;&#x9875;&#x9762;&#x7684;&#x6700;&#x5C0F;&#x5B57;&#x8282;&#x6570;,&#x9875;&#x9762;&#x5B57;&#x8282;&#x6570;&#x4ECE;header&#x5077;&#x5F97;content-length&#x4E2D;&#x83B7;&#x53D6;.&#x9ED8;&#x8BA4;&#x662F;0,&#x4E0D;&#x7BA1;&#x9875;&#x9762;&#x591A;&#x5927;&#x90FD;&#x8FDB;&#x884C;&#x538B;&#x7F29;.&#x5EFA;&#x8BAE;&#x8BBE;&#x7F6E;&#x6210;&#x5927;&#x4E8E;1k&#x7684;&#x5B57;&#x8282;&#x6570;,&#x5C0F;&#x4E8E;1k&#x53EF;&#x80FD;&#x4F1A;&#x8D8A;&#x538B;&#x8D8A;&#x5927;
    gzip_buffers 4 16k; #&#x8868;&#x793A;&#x7533;&#x8BF7;4&#x4E2A;&#x5355;&#x4F4D;&#x4E3A;16k&#x7684;&#x5185;&#x5B58;&#x4F5C;&#x4E3A;&#x538B;&#x7F29;&#x7ED3;&#x679C;&#x6D41;&#x7F13;&#x5B58;,&#x9ED8;&#x8BA4;&#x503C;&#x662F;&#x7533;&#x8BF7;&#x4E0E;&#x539F;&#x59CB;&#x6570;&#x636E;&#x5927;&#x5C0F;&#x76F8;&#x540C;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x6765;&#x5B58;&#x50A8;gzip&#x538B;&#x7F29;&#x7ED3;&#x679C;
    gzip_http_version 1.1; #&#x538B;&#x7F29;&#x7248;&#x672C;&#xFF08;&#x9ED8;&#x8BA4;1.1,&#x76EE;&#x524D;&#x5927;&#x90E8;&#x5206;&#x6D4F;&#x89C8;&#x5668;&#x5DF2;&#x7ECF;&#x652F;&#x6301;gzip&#x89E3;&#x538B;.&#x524D;&#x7AEF;&#x5982;&#x679C;&#x662F;squid2.5&#x8BF7;&#x4F7F;&#x7528;1.0&#xFF09;
    gzip_comp_level 2; #&#x538B;&#x7F29;&#x7B49;&#x7EA7;.1&#x538B;&#x7F29;&#x6BD4;&#x6700;&#x5C0F;,&#x5904;&#x7406;&#x901F;&#x5EA6;&#x5FEB;.9&#x538B;&#x7F29;&#x6BD4;&#x6700;&#x5927;,&#x6BD4;&#x8F83;&#x6D88;&#x8017;cpu&#x8D44;&#x6E90;,&#x5904;&#x7406;&#x901F;&#x5EA6;&#x6700;&#x6162;,&#x4F46;&#x662F;&#x56E0;&#x4E3A;&#x538B;&#x7F29;&#x6BD4;&#x6700;&#x5927;,&#x6240;&#x4EE5;&#x5305;&#x6700;&#x5C0F;,&#x4F20;&#x8F93;&#x901F;&#x5EA6;&#x5FEB;
    gzip_types text/plain application/x-javascript text/css application/xml;
    #&#x538B;&#x7F29;&#x7C7B;&#x578B;,&#x9ED8;&#x8BA4;&#x5C31;&#x5DF2;&#x7ECF;&#x5305;&#x542B;text/html,&#x6240;&#x4EE5;&#x4E0B;&#x9762;&#x5C31;&#x4E0D;&#x7528;&#x518D;&#x5199;&#x4E86;,&#x5199;&#x4E0A;&#x53BB;&#x4E5F;&#x4E0D;&#x4F1A;&#x6709;&#x95EE;&#x9898;,&#x4F46;&#x662F;&#x4F1A;&#x6709;&#x4E00;&#x4E2A;warn.
    gzip_vary on;#&#x9009;&#x9879;&#x53EF;&#x4EE5;&#x8BA9;&#x524D;&#x7AEF;&#x7684;&#x7F13;&#x5B58;&#x670D;&#x52A1;&#x5668;&#x7F13;&#x5B58;&#x7ECF;&#x8FC7;gzip&#x538B;&#x7F29;&#x7684;&#x9875;&#x9762;.&#x4F8B;&#x5982;:&#x7528;squid&#x7F13;&#x5B58;&#x7ECF;&#x8FC7;nginx&#x538B;&#x7F29;&#x7684;&#x6570;&#x636E;

    #&#x5F00;&#x542F;&#x9650;&#x5236;IP&#x8FDE;&#x63A5;&#x6570;&#x7684;&#x65F6;&#x5019;&#x9700;&#x8981;&#x4F7F;&#x7528;
    #limit_zone crawler $binary_remote_addr 10m;

    ##upstream&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;,&#x56DB;&#x79CD;&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;(&#x4E0B;&#x4F8B;&#x4E3B;&#x8BB2;)##

    #&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x7684;&#x914D;&#x7F6E;
    server
    {
        # &#x76D1;&#x542C;&#x7AEF;&#x53E3;
        listen 80;
        # &#x57DF;&#x540D;&#x53EF;&#x4EE5;&#x6709;&#x591A;&#x4E2A;,&#x7528;&#x7A7A;&#x683C;&#x9694;&#x5F00;
        server_name ably.com;
        # HTTP &#x81EA;&#x52A8;&#x8DF3;&#x8F6C; HTTPS
        rewrite ^(.*) https://$server_name$1 permanent;
    }

    server
    {
        # &#x76D1;&#x542C;&#x7AEF;&#x53E3; HTTPS
        listen 443 ssl;
        server_name ably.com;

        # &#x914D;&#x7F6E;&#x57DF;&#x540D;&#x8BC1;&#x4E66;
        ssl_certificate      C:\WebServer\Certs\certificate.crt;
        ssl_certificate_key  C:\WebServer\Certs\private.key;
        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;
        ssl_protocols SSLv2 SSLv3 TLSv1;
        ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
        ssl_prefer_server_ciphers  on;

        index index.html index.htm index.php;
        root /data/www/;
        location ~ .*\.(php|php5)?$
        {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            include fastcgi.conf;
        }

        # &#x914D;&#x7F6E;&#x5730;&#x5740;&#x62E6;&#x622A;&#x8F6C;&#x53D1;&#xFF0C;&#x89E3;&#x51B3;&#x8DE8;&#x57DF;&#x9A8C;&#x8BC1;&#x95EE;&#x9898;
        location /oauth/{
            proxy_pass https://localhost:13580/oauth/;
            proxy_set_header HOST $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

        # &#x56FE;&#x7247;&#x7F13;&#x5B58;&#x65F6;&#x95F4;&#x8BBE;&#x7F6E;
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
            expires 10d;
        }

        # JS&#x548C;CSS&#x7F13;&#x5B58;&#x65F6;&#x95F4;&#x8BBE;&#x7F6E;
        location ~ .*\.(js|css)?$ {
            expires 1h;
        }

        # &#x65E5;&#x5FD7;&#x683C;&#x5F0F;&#x8BBE;&#x5B9A;
        log_format access &apos;$remote_addr - $remote_user [$time_local] &quot;$request&quot; &apos;
        &apos;$status $body_bytes_sent &quot;$http_referer&quot; &apos;
        &apos;&quot;$http_user_agent&quot; $http_x_forwarded_for&apos;;
        # &#x5B9A;&#x4E49;&#x672C;&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x7684;&#x8BBF;&#x95EE;&#x65E5;&#x5FD7;
        access_log /var/log/nginx/access.log access;

        # &#x8BBE;&#x5B9A;&#x67E5;&#x770B;Nginx&#x72B6;&#x6001;&#x7684;&#x5730;&#x5740;.StubStatus&#x6A21;&#x5757;&#x80FD;&#x591F;&#x83B7;&#x53D6;Nginx&#x81EA;&#x4E0A;&#x6B21;&#x542F;&#x52A8;&#x4EE5;&#x6765;&#x7684;&#x5DE5;&#x4F5C;&#x72B6;&#x6001;&#xFF0C;&#x6B64;&#x6A21;&#x5757;&#x975E;&#x6838;&#x5FC3;&#x6A21;&#x5757;&#xFF0C;&#x9700;&#x8981;&#x5728;Nginx&#x7F16;&#x8BD1;&#x5B89;&#x88C5;&#x65F6;&#x624B;&#x5DE5;&#x6307;&#x5B9A;&#x624D;&#x80FD;&#x4F7F;&#x7528;
        location /NginxStatus {
            stub_status on;
            access_log on;
            auth_basic &quot;NginxStatus&quot;;
            auth_basic_user_file conf/htpasswd;
            #htpasswd&#x6587;&#x4EF6;&#x7684;&#x5185;&#x5BB9;&#x53EF;&#x4EE5;&#x7528;apache&#x63D0;&#x4F9B;&#x7684;htpasswd&#x5DE5;&#x5177;&#x6765;&#x4EA7;&#x751F;.
        }
    }
}
</code></pre>
<h2 id="nginx&#x591A;&#x53F0;&#x670D;&#x52A1;&#x5668;&#x5B9E;&#x73B0;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#xFF1A;">Nginx&#x591A;&#x53F0;&#x670D;&#x52A1;&#x5668;&#x5B9E;&#x73B0;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#xFF1A;</h2>
<p>1&#x3001;Nginx&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x670D;&#x52A1;&#x5668;
IP&#xFF1A;192.168.0.4&#xFF08;Nginx-Server&#xFF09;
2&#x3001;Web&#x670D;&#x52A1;&#x5668;&#x5217;&#x8868;
Web1:192.168.0.5&#xFF08;Nginx-Node1/Nginx-Web1&#xFF09; &#xFF1B;Web2:192.168.0.7&#xFF08;Nginx-Node2/Nginx-Web2&#xFF09;
3&#x3001;&#x5B9E;&#x73B0;&#x76EE;&#x7684;</p>
<p>&#x7528;&#x6237;&#x8BBF;&#x95EE;Nginx-Server&#xFF08;&#x201C;<a href="http://mongo.demo.com:8888&#x201D;&#xFF09;&#x65F6;&#xFF0C;&#x901A;&#x8FC7;Nginx&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x5230;Web1&#x548C;Web2&#x670D;&#x52A1;&#x5668;" target="_blank">http://mongo.demo.com:8888&#x201D;&#xFF09;&#x65F6;&#xFF0C;&#x901A;&#x8FC7;Nginx&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x5230;Web1&#x548C;Web2&#x670D;&#x52A1;&#x5668;</a>
Nginx&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x670D;&#x52A1;&#x5668;&#x7684;nginx.conf&#x914D;&#x7F6E;&#x6CE8;&#x91CA;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-conf">events
{
    use epoll;
    worker_connections 65535;
}
http
{
    ##upstream&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;,&#x56DB;&#x79CD;&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;##
    #&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;1:&#x8F6E;&#x8BE2;.&#x6BCF;&#x4E2A;&#x8BF7;&#x6C42;&#x6309;&#x65F6;&#x95F4;&#x987A;&#x5E8F;&#x9010;&#x4E00;&#x5206;&#x914D;&#x5230;&#x4E0D;&#x540C;&#x7684;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;,&#x5982;&#x679C;&#x540E;&#x7AEF;&#x67D0;&#x53F0;&#x670D;&#x52A1;&#x5668;&#x5B95;&#x673A;,&#x6545;&#x969C;&#x7CFB;&#x7EDF;&#x88AB;&#x81EA;&#x52A8;&#x5254;&#x9664;,&#x4F7F;&#x7528;&#x6237;&#x8BBF;&#x95EE;&#x4E0D;&#x53D7;&#x5F71;&#x54CD;
    upstream webhost {
        server 192.168.0.5:6666 ;
        server 192.168.0.7:6666 ;
    }
    #&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;2:weight(&#x6743;&#x91CD;).&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x673A;&#x5668;&#x914D;&#x7F6E;&#x5B9A;&#x4E49;&#x6743;&#x91CD;.&#x6743;&#x91CD;&#x8D8A;&#x9AD8;&#x88AB;&#x5206;&#x914D;&#x5230;&#x7684;&#x51E0;&#x7387;&#x8D8A;&#x5927;
    upstream webhost {
        server 192.168.0.5:6666 weight=2;
        server 192.168.0.7:6666 weight=3;
    }
    #&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;3:ip_hash. &#x6BCF;&#x4E2A;&#x8BF7;&#x6C42;&#x6309;&#x8BBF;&#x95EE;IP&#x7684;hash&#x7ED3;&#x679C;&#x5206;&#x914D;,&#x8FD9;&#x6837;&#x6765;&#x81EA;&#x540C;&#x4E00;&#x4E2A;IP&#x7684;&#x8BBF;&#x5BA2;&#x56FA;&#x5B9A;&#x8BBF;&#x95EE;&#x4E00;&#x4E2A;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;,&#x6709;&#x6548;&#x89E3;&#x51B3;&#x4E86;&#x52A8;&#x6001;&#x7F51;&#x9875;&#x5B58;&#x5728;&#x7684;session&#x5171;&#x4EAB;&#x95EE;&#x9898;
    upstream webhost {
        ip_hash;
        server 192.168.0.5:6666 ;
        server 192.168.0.7:6666 ;
    }
    #&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;4:url_hash(&#x9700;&#x5B89;&#x88C5;&#x7B2C;&#x4E09;&#x65B9;&#x63D2;&#x4EF6;).&#x6B64;&#x65B9;&#x6CD5;&#x6309;&#x8BBF;&#x95EE;url&#x7684;hash&#x7ED3;&#x679C;&#x6765;&#x5206;&#x914D;&#x8BF7;&#x6C42;,&#x4F7F;&#x6BCF;&#x4E2A;url&#x5B9A;&#x5411;&#x5230;&#x540C;&#x4E00;&#x4E2A;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;,&#x53EF;&#x4EE5;&#x8FDB;&#x4E00;&#x6B65;&#x63D0;&#x9AD8;&#x540E;&#x7AEF;&#x7F13;&#x5B58;&#x670D;&#x52A1;&#x5668;&#x7684;&#x6548;&#x7387;.Nginx&#x672C;&#x8EAB;&#x662F;&#x4E0D;&#x652F;&#x6301;url_hash&#x7684;,&#x5982;&#x679C;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x8FD9;&#x79CD;&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;,&#x5FC5;&#x987B;&#x5B89;&#x88C5;Nginx &#x7684;hash&#x8F6F;&#x4EF6;&#x5305;
    upstream webhost {
        server 192.168.0.5:6666 ;
        server 192.168.0.7:6666 ;
        hash $request_uri;
    }
    #&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;5:fair(&#x9700;&#x5B89;&#x88C5;&#x7B2C;&#x4E09;&#x65B9;&#x63D2;&#x4EF6;).&#x8FD9;&#x662F;&#x6BD4;&#x4E0A;&#x9762;&#x4E24;&#x4E2A;&#x66F4;&#x52A0;&#x667A;&#x80FD;&#x7684;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x7B97;&#x6CD5;.&#x6B64;&#x79CD;&#x7B97;&#x6CD5;&#x53EF;&#x4EE5;&#x4F9D;&#x636E;&#x9875;&#x9762;&#x5927;&#x5C0F;&#x548C;&#x52A0;&#x8F7D;&#x65F6;&#x95F4;&#x957F;&#x77ED;&#x667A;&#x80FD;&#x5730;&#x8FDB;&#x884C;&#x8D1F;&#x8F7D;&#x5747;&#x8861;,&#x4E5F;&#x5C31;&#x662F;&#x6839;&#x636E;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;&#x7684;&#x54CD;&#x5E94;&#x65F6;&#x95F4;&#x6765;&#x5206;&#x914D;&#x8BF7;&#x6C42;,&#x54CD;&#x5E94;&#x65F6;&#x95F4;&#x77ED;&#x7684;&#x4F18;&#x5148;&#x5206;&#x914D;.Nginx&#x672C;&#x8EAB;&#x662F;&#x4E0D;&#x652F;&#x6301;fair&#x7684;,&#x5982;&#x679C;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x8FD9;&#x79CD;&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;,&#x5FC5;&#x987B;&#x4E0B;&#x8F7D;Nginx&#x7684;upstream_fair&#x6A21;&#x5757;
    #
    #&#x865A;&#x62DF;&#x4E3B;&#x673A;&#x7684;&#x914D;&#x7F6E;(&#x91C7;&#x7528;&#x8C03;&#x5EA6;&#x7B97;&#x6CD5;3:ip_hash)
    server
    {
        listen 80;
        server_name mongo.demo.com;
        #&#x5BF9; &quot;/&quot; &#x542F;&#x7528;&#x53CD;&#x5411;&#x4EE3;&#x7406;
        location / {
            proxy_pass http://webhost;
            proxy_redirect off;
            proxy_set_header X-Real-IP $remote_addr;
            #&#x540E;&#x7AEF;&#x7684;Web&#x670D;&#x52A1;&#x5668;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;X-Forwarded-For&#x83B7;&#x53D6;&#x7528;&#x6237;&#x771F;&#x5B9E;IP
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            #&#x4EE5;&#x4E0B;&#x662F;&#x4E00;&#x4E9B;&#x53CD;&#x5411;&#x4EE3;&#x7406;&#x7684;&#x914D;&#x7F6E;,&#x53EF;&#x9009;.
            proxy_set_header Host $host;
            client_max_body_size 10m; #&#x5141;&#x8BB8;&#x5BA2;&#x6237;&#x7AEF;&#x8BF7;&#x6C42;&#x7684;&#x6700;&#x5927;&#x5355;&#x6587;&#x4EF6;&#x5B57;&#x8282;&#x6570;
            client_body_buffer_size 128k; #&#x7F13;&#x51B2;&#x533A;&#x4EE3;&#x7406;&#x7F13;&#x51B2;&#x7528;&#x6237;&#x7AEF;&#x8BF7;&#x6C42;&#x7684;&#x6700;&#x5927;&#x5B57;&#x8282;&#x6570;,
            proxy_connect_timeout 90; #nginx&#x8DDF;&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;&#x8FDE;&#x63A5;&#x8D85;&#x65F6;&#x65F6;&#x95F4;(&#x4EE3;&#x7406;&#x8FDE;&#x63A5;&#x8D85;&#x65F6;)
            proxy_send_timeout 90; #&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;&#x6570;&#x636E;&#x56DE;&#x4F20;&#x65F6;&#x95F4;(&#x4EE3;&#x7406;&#x53D1;&#x9001;&#x8D85;&#x65F6;)
            proxy_read_timeout 90; #&#x8FDE;&#x63A5;&#x6210;&#x529F;&#x540E;,&#x540E;&#x7AEF;&#x670D;&#x52A1;&#x5668;&#x54CD;&#x5E94;&#x65F6;&#x95F4;(&#x4EE3;&#x7406;&#x63A5;&#x6536;&#x8D85;&#x65F6;)
            proxy_buffer_size 4k; #&#x8BBE;&#x7F6E;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x5668;&#xFF08;nginx&#xFF09;&#x4FDD;&#x5B58;&#x7528;&#x6237;&#x5934;&#x4FE1;&#x606F;&#x7684;&#x7F13;&#x51B2;&#x533A;&#x5927;&#x5C0F;
            proxy_buffers 4 32k; #proxy_buffers&#x7F13;&#x51B2;&#x533A;,&#x7F51;&#x9875;&#x5E73;&#x5747;&#x5728;32k&#x4EE5;&#x4E0B;&#x7684;&#x8BBE;&#x7F6E;
            proxy_busy_buffers_size 64k; #&#x9AD8;&#x8D1F;&#x8377;&#x4E0B;&#x7F13;&#x51B2;&#x5927;&#x5C0F;&#xFF08;proxy_buffers*2&#xFF09;
            proxy_temp_file_write_size 64k;
            #&#x8BBE;&#x5B9A;&#x7F13;&#x5B58;&#x6587;&#x4EF6;&#x5939;&#x5927;&#x5C0F;,&#x5927;&#x4E8E;&#x8FD9;&#x4E2A;&#x503C;,&#x5C06;&#x4ECE;upstream&#x670D;&#x52A1;&#x5668;&#x4F20;
        }
    }
}
</code></pre>
<p>&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x64CD;&#x4F5C;&#x6F14;&#x793A;&#x5982;&#x4E0B;&#xFF1A;
&#x64CD;&#x4F5C;&#x5BF9;&#x8C61;&#xFF1A;192.168.0.4&#xFF08;Nginx-Server&#xFF09;</p>
<pre><code class="lang-conf"># &#x521B;&#x5EFA;&#x6587;&#x4EF6;&#x5939;&#x51C6;&#x5907;&#x5B58;&#x653E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;
$ mkdir -p /opt/confs
$ vim /opt/confs/nginx.conf

# &#x7F16;&#x8F91;&#x5185;&#x5BB9;&#x5982;&#x4E0B;&#xFF1A;
events
{
  use epoll;
  worker_connections 65535;
}

http
{
    upstream webhost {
        ip_hash;
        server 192.168.0.5:6666 ;
        server 192.168.0.7:6666 ;
    }

    server
    {
        listen 80;
        server_name mongo.demo.com;
        location / {
            proxy_pass http://webhost;
            proxy_redirect off;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $host;
            client_max_body_size 10m;
            client_body_buffer_size 128k;
            proxy_connect_timeout 90;
            proxy_send_timeout 90;
            proxy_read_timeout 90;
            proxy_buffer_size 4k;
            proxy_buffers 4 32k;
            proxy_busy_buffers_size 64k;
            proxy_temp_file_write_size 64k;
        }
    }
}
# &#x7136;&#x540E;&#x4FDD;&#x5B58;&#x5E76;&#x9000;&#x51FA;

# &#x542F;&#x52A8;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x670D;&#x52A1;&#x5668;192.168.0.4&#xFF08;Nginx-Server&#xFF09;
docker run -d -p 8888:80 --name nginx-server -v /opt/confs/nginx.conf:/etc/nginx/nginx.conf --restart always nginx
</code></pre>
<p>&#x64CD;&#x4F5C;&#x5BF9;&#x8C61;&#xFF1A;192.168.0.5&#xFF08;Nginx-Node1/Nginx-Web1&#xFF09;</p>
<pre><code class="lang-conf"># &#x521B;&#x5EFA;&#x6587;&#x4EF6;&#x5939;&#x7528;&#x4E8E;&#x5B58;&#x653E;web&#x9875;&#x9762;
$ mkdir -p /opt/html
$ vim /opt/html/index.html

# &#x7F16;&#x8F91;&#x5185;&#x5BB9;&#x5982;&#x4E0B;&#xFF1A;
&lt;div&gt;
  &lt;h1&gt;
    The host is 192.168.0.5(Docker02) - Node 1!
  &lt;/h1&gt;
&lt;/div&gt;
# &#x7136;&#x540E;&#x4FDD;&#x5B58;&#x5E76;&#x9000;&#x51FA;

# &#x542F;&#x52A8;192.168.0.5&#xFF08;Nginx-Node1/Nginx-Web1&#xFF09;
$ docker run -d -p 6666:80 --name nginx-node1 -v /opt/html:/usr/share/nginx/html --restart always nginx
</code></pre>
<p>&#x64CD;&#x4F5C;&#x5BF9;&#x8C61;&#xFF1A;192.168.0.7&#xFF08;Nginx-Node2/Nginx-Web2&#xFF09;</p>
<pre><code class="lang-conf"># &#x521B;&#x5EFA;&#x6587;&#x4EF6;&#x5939;&#x7528;&#x4E8E;&#x5B58;&#x653E;web&#x9875;&#x9762;
$ mkdir -p /opt/html
$ vim /opt/html/index.html

# &#x7F16;&#x8F91;&#x5185;&#x5BB9;&#x5982;&#x4E0B;&#xFF1A;
&lt;div&gt;
  &lt;h1&gt;
    The host is 192.168.0.7(Docker03) - Node 2!
  &lt;/h1&gt;
&lt;/div&gt;
# &#x7136;&#x540E;&#x4FDD;&#x5B58;&#x5E76;&#x9000;&#x51FA;

# &#x542F;&#x52A8;192.168.0.7&#xFF08;Nginx-Node2/Nginx-Web2&#xFF09;
$ docker run -d -p 6666:80 --name nginx-node2 -v $(pwd)/html:/usr/share/nginx/html --restart always nginx
</code></pre>
<p>&#x6D4B;&#x8BD5;&#xFF1A;
&#x57DF;&#x540D;:mongo.demo.com&#xFF0C;&#x8FD9;&#x91CC;&#x662F;&#x7528;Windows&#x7CFB;&#x7EDF;&#x4E3B;&#x673A;&#x8BBF;&#x95EE;&#x670D;&#x52A1;&#x5668;&#xFF0C;&#x8981;&#x5728;&#x5F53;&#x524D;&#x4E3B;&#x673A;&#x7684;hosts&#x4E2D;&#x6DFB;&#x52A0;&#x89E3;&#x6790; &#x201C;mongo.demo.com 192.168.0.4&#x201D;&#xFF0C;hosts&#x6587;&#x4EF6;&#x6240;&#x5728;&#x7684;&#x8DEF;&#x5F84;&#x4E3A; &#x201C;C:\Windows\System32\drivers\etc&#x201D;&#x3002;</p>
<p>&#x8FD9;&#x91CC;&#x5728;Windows&#x4E3B;&#x673A;&#x4E0A;&#x901A;&#x8FC7;&#x6D4F;&#x89C8;&#x5668;&#x8BBF;&#x95EE; &#x201C;<a href="http://mongo.demo.com:8888&#x201D;" target="_blank">http://mongo.demo.com:8888&#x201D;</a> &#x8FD9;&#x4E2A;&#x7AD9;&#x70B9;&#x7684;&#x65F6;&#x5019;&#xFF0C;Nginx&#x4F1A;&#x6839;&#x636E;&#x6765;&#x8BBF;&#x7684;&#x4E3B;&#x673A;&#x7684;ip_hash&#x503C;&#xFF0C;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x5230;192.168.0.5&#xFF08;Nginx-Node1/Nginx-Web1&#xFF09;&#x548C;192.168.0.7&#xFF08;Nginx-Node2/Nginx-Web2&#xFF09;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x3002;</p>
<p>&#x5982;&#x679C;&#x5176;&#x4E2D;&#x4E00;&#x4E2A;Web&#x670D;&#x52A1;&#x5668;&#x65E0;&#x6548;&#x540E;&#xFF0C;&#x8D1F;&#x8F7D;&#x5747;&#x8861;&#x670D;&#x52A1;&#x5668;&#x4F1A;&#x81EA;&#x52A8;&#x5C06;&#x8BF7;&#x6C42;&#x8F6C;&#x53D1;&#x5230;&#x6B63;&#x5E38;&#x7684;Web&#x670D;&#x52A1;&#x5668;&#x3002;</p>
<p>&#x4E0B;&#x56FE;&#x662F;&#x53E6;&#x5916;&#x505A;&#x7684;&#x4E00;&#x7EC4;demo&#x7684;&#x8BBF;&#x95EE;&#x6548;&#x679C;&#x56FE;&#xFF0C;&#x800C;&#x4E14;&#x5BB9;&#x5668;&#x7684;&#x7AEF;&#x53E3;&#x548C;IP&#x4E0D;&#x540C;&#xFF08;&#x6240;&#x6709;&#x4FE1;&#x606F;&#x90FD;&#x505A;&#x4E86;&#x76F8;&#x5E94;&#x4FEE;&#x6539;&#xFF09;&#xFF1A;
1.Nginx-Server&#xFF1A;192.168.2.129&#xFF08;Docker01&#xFF09;&#xFF1B;
2.Nginx-Node1&#xFF1A;192.168.2.56&#xFF08;Docker02&#xFF09;&#xFF1B;
3.Nginx-Node2&#xFF1A;192.168.2.77&#xFF08;Docker03&#xFF09;&#xFF1B;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="2019-12-29-Nginx-Keepalived高可用集群.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 1.2019-12-29-Nginx-Keepalived高可用集群">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"layout":"post","title":"2.2020-01-16-nginx参数详细说明","categories":["nginx"],"description":"Nginx配置参数中文说明","keywords":"nginx,配置","level":"2.18.2","depth":2,"next":{"title":"[other]","level":"2.19","depth":1,"ref":"","articles":[{"title":"1.2019-12-28-知识小计","level":"2.19.1","depth":2,"path":"other/2019-12-28-知识小计.md","ref":"other/2019-12-28-知识小计.md","articles":[]},{"title":"2.2020-01-04-科学上网","level":"2.19.2","depth":2,"path":"other/2020-01-04-科学上网.md","ref":"other/2020-01-04-科学上网.md","articles":[]},{"title":"3.2020-05-13-正则表达式","level":"2.19.3","depth":2,"path":"other/2020-05-13-正则表达式.md","ref":"other/2020-05-13-正则表达式.md","articles":[]},{"title":"4.template","level":"2.19.4","depth":2,"path":"other/template.md","ref":"other/template.md","articles":[]}]},"previous":{"title":"1.2019-12-29-Nginx-Keepalived高可用集群","level":"2.18.1","depth":2,"path":"nginx/2019-12-29-Nginx-Keepalived高可用集群.md","ref":"nginx/2019-12-29-Nginx-Keepalived高可用集群.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"nginx/2020-01-16-nginx参数详细说明.md","mtime":"2020-01-16T03:37:43.695Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-08-27T08:51:05.639Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

